#ifndef CHATITEM_H
#define CHATITEM_H

#include <QWidget>

namespace Ui
{
    class ChatItem;
}

class ChatItem : public QWidget
{
    Q_OBJECT

public:
    explicit ChatItem(QWidget *parent = nullptr);
    ~ChatItem();

public:
    void setPixmap(QString path);
    void setPixmap(const QPixmap &pixmap);
    QPixmap getPixmp();
    void setName(QString name);
    void setMessage(QString message, QString time);

    QString getName() const;
    QString getUserId() const;
    void setUserId(QString userId);

private:
    Ui::ChatItem *ui;
    QString userId;
};

#endif // CHATITEM_H
